<?php
/**
 * Data object model of radiology ticket item
 *
 */
class RadTicketItemModel {
    private $rad_ticket_id      =   '';
    private $service_id         =   '';
    private $service_name       =   '';
    private $is_done            =   '';

    function __construct($radTicketId, $serviceId, $serviceName, $isDone) {
        $this->rad_ticket_id    =   $radTicketId;
        $this->service_id       =   $serviceId;
        $this->service_name     =   $serviceName;
        $this->is_done          =   $isDone;
    }

    public function getRadTicketId() {
    	return $this->rad_ticket_id;
    }

    public function getServiceId() {
    	return $this->service_id;
    }

    public function getServiceName() {
    	return $this->service_name;
    }

    public function isDone() {
        return $this->is_done;
    }

    // General setter
    public function set($key, $value) {
        if(property_exists($this,$key)){
            $this->$key =   $value;
        }
    }

    // General getter
    public function get($key) {
        if(property_exists($this,$key)){
            return $this->$key;
        }
        return '';
    }
}
?>